package main

import (
	"github.com/gin-gonic/gin"
	log "github.com/sirupsen/logrus"
	"strconv"
	"vpn/app/global"
	"vpn/config"
	"vpn/logger"
	"vpn/routers"
)

func main() {
	config.LoadYaml(true)
	global.Init()
	logger.InitLogger(global.LogConf)
	log.Info("service started...")
	router := routers.InitApiRouter(gin.DebugMode)
	_ = router.Run(":" + strconv.Itoa(global.Conf.DefaultPort))
}
